package com.lwj.mallchat.common.user.service.adapter;

import me.chanjar.weixin.common.service.WxService;
import me.chanjar.weixin.mp.api.WxMpMessageRouter;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutTextMessage;

/**
 * @author lwj
 * @ClassName TextBuilder
 * @date 2024/10/16 17:51
 */
public class TextBuilder {
    public  static WxMpXmlOutMessage build(String content, WxMpXmlMessage wxMessage) {
        WxMpXmlOutTextMessage m = WxMpXmlOutMessage.TEXT()
                .content(content)
                .fromUser(wxMessage.getToUser())
                .toUser(wxMessage.getFromUser())
                .build();
        return m;
    }
}
